package com.cql.controller;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(name = "eureka-client-service")
@Component
public interface UserService {

    @RequestMapping(value = "/cql/venus/{name}", method = RequestMethod.GET)
    @ResponseBody
    String venus(@PathVariable("name") String name);
}
